package com.lrkj.back.service.impl;

import java.util.List;
import java.util.Map;

import com.lrkj.back.mapper.TbAdviceMapper;
import com.lrkj.back.entity.TbAdvice;
import com.lrkj.back.service.TbAdviceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.com.cbons.mamisay.parent.db.api.DBInterface;
import cn.com.cbons.mamisay.parent.exception.DBException;
import cn.com.cbons.mamisay.parent.service.base.ParentServiceImpl;

@Transactional
@Service("advice")
public class TbAdviceServiceImpl extends ParentServiceImpl<TbAdvice> implements TbAdviceService {

    @Autowired
    private TbAdviceMapper adviceMapper;

    @Override
    protected DBInterface<TbAdvice> getDao() {
        return adviceMapper;
    }

    @Override
    public List<TbAdvice> findAll(Map<String, Object> map) throws DBException {
        return adviceMapper.findAll(map);
    }

}
